package work20241206_chap7.m_demo10;

/**
 * @author zdl
 * @date 2024/12/5
 */
public class Demo {
    public static void main(String[] args) {
        Bank bank = new Bank();
        bank.openAccount(1,"123456",0);
        CreditAccount creditAccount = new CreditAccount(1,2000,"123456",100);
        double s = bank.deposit(creditAccount,100);
        System.out.println("存钱:"+s);
        CreditAccount creditAccount1 = new CreditAccount(1,2000,"123456",100);
        double b = bank.withdraw(creditAccount1,3000);
        System.out.println(b);

        System.out.println();
        Account a =new Account();
        Account a1 =new Account();
        System.out.println(a.getId());
        System.out.println(a1.getId());
    }
}
